package com.ebookstore.dto;

import java.util.Date;

public class Book extends BaseDTO implements java.io.Serializable {

	private Integer bookId;//书编号

	private Integer categoryId;//所属类别编号

	private String bookName;//书名

	private String author;//作者

	private String publishCompany;//出版社

	private Date publishDate;//出版日期

	private String description;//描述信息

	private String imageUrl;//书的图片地址

	private String bookKey;//书的key，可用于关键字查找

	public Book() {
	}

	public Book(Integer categoryId, String bookName, String author,
			String publishCompany, Date publishDate, String description,
			String imageUrl, String bookKey) {
		this.categoryId = categoryId;
		this.bookName = bookName;
		this.author = author;
		this.publishCompany = publishCompany;
		this.publishDate = publishDate;
		this.description = description;
		this.imageUrl = imageUrl;
		this.bookKey = bookKey;
	}
	//属性的getter和setter方法
	public Integer getBookId() {
		return this.bookId;
	}

	public void setBookId(Integer bookId) {
		this.bookId = bookId;
	}

	public Integer getCategoryId() {
		return this.categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	public String getBookName() {
		return this.bookName;
	}

	public void setBookName(String bookName) {
		this.bookName = bookName;
	}

	public String getAuthor() {
		return this.author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getPublishCompany() {
		return this.publishCompany;
	}

	public void setPublishCompany(String publishCompany) {
		this.publishCompany = publishCompany;
	}

	public Date getPublishDate() {
		return this.publishDate;
	}

	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getImageUrl() {
		return this.imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public String getBookKey() {
		return this.bookKey;
	}

	public void setBookKey(String bookKey) {
		this.bookKey = bookKey;
	}
}